/*
    SUSAN® - Sole of Unix Save ANything

   Copyright (C) 2016-2019 Skyatlas co. ltd

   
*/

#ifndef BAREOS_DIRD_AUTORECYCLE_H_
#define BAREOS_DIRD_AUTORECYCLE_H_

namespace directordaemon {

bool FindRecycledVolume(JobControlRecord* jcr,
                        bool InChanger,
                        MediaDbRecord* mr,
                        StorageResource* store,
                        const char* unwanted_volumes);
bool RecycleOldestPurgedVolume(JobControlRecord* jcr,
                               bool InChanger,
                               MediaDbRecord* mr,
                               StorageResource* store,
                               const char* unwanted_volumes);
bool RecycleVolume(JobControlRecord* jcr, MediaDbRecord* mr);

} /* namespace directordaemon */
#endif  // BAREOS_DIRD_AUTORECYCLE_H_
